package com.jinzo.mporaba;

import android.net.Uri;

public class QuotaItem {
	
	private String displayName;
	private boolean prepaid;
	private String unit;
	private String available;
	private String used;
    public static final Uri CONTENT_URI = Uri.parse("content://com.jinzo.mporaba.contentprovider/poraba");
    public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.jinzo.poraba";
    
	public QuotaItem(String dp, String us) {
		displayName = dp;
		used = us;
		prepaid = false;
	}
	
	public QuotaItem(String dp, boolean p, String u, String a, String us) {
		displayName = dp;
		prepaid = p;
		unit = u;
		available = a;
		used = us;
	}
	
	public String getDisplayName(){
		return displayName;
	}
	
	public boolean isPrepaid(){
		return prepaid;
	}
	
	public String getUnit(){
		if (unit == null) {
			return "€";
		} else {
			return unit;
		}
	}
	
	public String getAvailable(){
		return available;
	}
	
	public String getUsed() {
		return used;
	}
	
	public void setDisplayName(String dp){
		displayName = dp;
	}
	
	public void setPrepaid(boolean p){
		prepaid = p;
	}
	
	public void setUnit(String u){
		unit = u;
	}
	public void setAvailable(String a){
		available = a;
	}
	public void setUsed(String u){
		used = u;
	}
	
}
